#include <cstdlib>
#include <iostream>
#include "ConsoleInterface.h"
int main()
{
	for( ;; )
	{
	std::cout << "==================================MAIN MENU==============================" << std::endl;
	std::cout << "Enter 1 - to work with dates, 2 - to work with intervals" << std::endl;
	std::cout << "0 - to EXIT FROM PROGRAM" << std::endl;
	std::cout << "COMMENT: When you enter your date  enter 6 numbers only." << std::endl;
	std::cout << "For example, if you enter: 2012 12 21 14 15 0," << std::endl;
	std::cout << "you pass the program:      2012 Dec 21 14:15:00" << std::endl;
	std::cout << "=========================================================================" << std::endl;
	int workMode;
	std::cin >> workMode;

	switch (workMode)
	{
		case 0:
		std::cout << "MESSAGE: Work is completed. Press any key to exit." << std::endl;
		return EXIT_SUCCESS;
		break;
	case 1:
		workWithDates ();
		break;
	case 2:
		workWithDateInterval ();
		break;

	}
	}
	
}